<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>vue.extend 扩展实例构造器</title>
	<script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
	<h1>vue.extend 扩展实例构造器</h1>
	<hr>
	<author></author>
	<div id="app"></div>

</body>
<script type="text/javascript">
var authorExtend = Vue.extend({
	template:"<p><a :href='authorURL'>{{authorName}}</a></p>",
	data:function () {
		return{
			authorName:'jsdiy',
			authorURL:"http://baidu.com"
		}
	}
})

new authorExtend().$mount("author");
new authorExtend().$mount("#app");
</script>
</html>